Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDK-7627, RSDK-7660, RSDK-7480: removes PIL, adds two new methods get_properties and capture_all_from_camera #2

Merged
merged 2 commits into from
May 21, 2024

Conversation

bhaney
Copy link
Member

@bhaney bhaney commented May 21, 2024

This PR updates the module to be ready for the viam-sdk version 0.21.0

@bhaney bhaney requested a review from kharijarrett May 21, 2024 18:53
@bhaney bhaney changed the title removes PIL, adds two new methods get_properties and capture_all_from_camera RSDK-7627, RSDK-7660, RSDK-7480: removes PIL, adds two new methods get_properties and capture_all_from_camera May 21, 2024
Copy link

@kharijarrett kharijarrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I left small comments


from viam.module.types import Reconfigurable
from viam.proto.app.robot import ComponentConfig
from viam.proto.service.vision import Classification
from viam.proto.common import ResourceName
from viam.proto.service.vision import Classification, Detection

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you actually need to import Detection and PointCloudObject?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point - I'll remove them

timeout: Optional[float] = None,
) -> CaptureAllResult:
result = CaptureAllResult()
if camera_name != self.camera_name:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can do anything about this but I still dislike (even more now) that we need to include camera names in the config.

@bhaney bhaney merged commit 9f4bf41 into main May 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants